package com.ymttest.database.sharding.db.sharding.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class RefundFundExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RefundFundExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(Long value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(Long value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(Long value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(Long value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(Long value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(Long value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<Long> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<Long> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(Long value1, Long value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(Long value1, Long value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andUserThirdpartyAmountIsNull() {
            addCriterion("user_thirdparty_amount is null");
            return (Criteria) this;
        }

        public Criteria andUserThirdpartyAmountIsNotNull() {
            addCriterion("user_thirdparty_amount is not null");
            return (Criteria) this;
        }

        public Criteria andUserThirdpartyAmountEqualTo(BigDecimal value) {
            addCriterion("user_thirdparty_amount =", value, "userThirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andUserThirdpartyAmountNotEqualTo(BigDecimal value) {
            addCriterion("user_thirdparty_amount <>", value, "userThirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andUserThirdpartyAmountGreaterThan(BigDecimal value) {
            addCriterion("user_thirdparty_amount >", value, "userThirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andUserThirdpartyAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("user_thirdparty_amount >=", value, "userThirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andUserThirdpartyAmountLessThan(BigDecimal value) {
            addCriterion("user_thirdparty_amount <", value, "userThirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andUserThirdpartyAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("user_thirdparty_amount <=", value, "userThirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andUserThirdpartyAmountIn(List<BigDecimal> values) {
            addCriterion("user_thirdparty_amount in", values, "userThirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andUserThirdpartyAmountNotIn(List<BigDecimal> values) {
            addCriterion("user_thirdparty_amount not in", values, "userThirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andUserThirdpartyAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("user_thirdparty_amount between", value1, value2, "userThirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andUserThirdpartyAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("user_thirdparty_amount not between", value1, value2, "userThirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andUserAccountAmountIsNull() {
            addCriterion("user_account_amount is null");
            return (Criteria) this;
        }

        public Criteria andUserAccountAmountIsNotNull() {
            addCriterion("user_account_amount is not null");
            return (Criteria) this;
        }

        public Criteria andUserAccountAmountEqualTo(BigDecimal value) {
            addCriterion("user_account_amount =", value, "userAccountAmount");
            return (Criteria) this;
        }

        public Criteria andUserAccountAmountNotEqualTo(BigDecimal value) {
            addCriterion("user_account_amount <>", value, "userAccountAmount");
            return (Criteria) this;
        }

        public Criteria andUserAccountAmountGreaterThan(BigDecimal value) {
            addCriterion("user_account_amount >", value, "userAccountAmount");
            return (Criteria) this;
        }

        public Criteria andUserAccountAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("user_account_amount >=", value, "userAccountAmount");
            return (Criteria) this;
        }

        public Criteria andUserAccountAmountLessThan(BigDecimal value) {
            addCriterion("user_account_amount <", value, "userAccountAmount");
            return (Criteria) this;
        }

        public Criteria andUserAccountAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("user_account_amount <=", value, "userAccountAmount");
            return (Criteria) this;
        }

        public Criteria andUserAccountAmountIn(List<BigDecimal> values) {
            addCriterion("user_account_amount in", values, "userAccountAmount");
            return (Criteria) this;
        }

        public Criteria andUserAccountAmountNotIn(List<BigDecimal> values) {
            addCriterion("user_account_amount not in", values, "userAccountAmount");
            return (Criteria) this;
        }

        public Criteria andUserAccountAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("user_account_amount between", value1, value2, "userAccountAmount");
            return (Criteria) this;
        }

        public Criteria andUserAccountAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("user_account_amount not between", value1, value2, "userAccountAmount");
            return (Criteria) this;
        }

        public Criteria andUserYmtCouponAmountIsNull() {
            addCriterion("user_ymt_coupon_amount is null");
            return (Criteria) this;
        }

        public Criteria andUserYmtCouponAmountIsNotNull() {
            addCriterion("user_ymt_coupon_amount is not null");
            return (Criteria) this;
        }

        public Criteria andUserYmtCouponAmountEqualTo(BigDecimal value) {
            addCriterion("user_ymt_coupon_amount =", value, "userYmtCouponAmount");
            return (Criteria) this;
        }

        public Criteria andUserYmtCouponAmountNotEqualTo(BigDecimal value) {
            addCriterion("user_ymt_coupon_amount <>", value, "userYmtCouponAmount");
            return (Criteria) this;
        }

        public Criteria andUserYmtCouponAmountGreaterThan(BigDecimal value) {
            addCriterion("user_ymt_coupon_amount >", value, "userYmtCouponAmount");
            return (Criteria) this;
        }

        public Criteria andUserYmtCouponAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("user_ymt_coupon_amount >=", value, "userYmtCouponAmount");
            return (Criteria) this;
        }

        public Criteria andUserYmtCouponAmountLessThan(BigDecimal value) {
            addCriterion("user_ymt_coupon_amount <", value, "userYmtCouponAmount");
            return (Criteria) this;
        }

        public Criteria andUserYmtCouponAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("user_ymt_coupon_amount <=", value, "userYmtCouponAmount");
            return (Criteria) this;
        }

        public Criteria andUserYmtCouponAmountIn(List<BigDecimal> values) {
            addCriterion("user_ymt_coupon_amount in", values, "userYmtCouponAmount");
            return (Criteria) this;
        }

        public Criteria andUserYmtCouponAmountNotIn(List<BigDecimal> values) {
            addCriterion("user_ymt_coupon_amount not in", values, "userYmtCouponAmount");
            return (Criteria) this;
        }

        public Criteria andUserYmtCouponAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("user_ymt_coupon_amount between", value1, value2, "userYmtCouponAmount");
            return (Criteria) this;
        }

        public Criteria andUserYmtCouponAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("user_ymt_coupon_amount not between", value1, value2, "userYmtCouponAmount");
            return (Criteria) this;
        }

        public Criteria andUserSellerCouponAmountIsNull() {
            addCriterion("user_seller_coupon_amount is null");
            return (Criteria) this;
        }

        public Criteria andUserSellerCouponAmountIsNotNull() {
            addCriterion("user_seller_coupon_amount is not null");
            return (Criteria) this;
        }

        public Criteria andUserSellerCouponAmountEqualTo(BigDecimal value) {
            addCriterion("user_seller_coupon_amount =", value, "userSellerCouponAmount");
            return (Criteria) this;
        }

        public Criteria andUserSellerCouponAmountNotEqualTo(BigDecimal value) {
            addCriterion("user_seller_coupon_amount <>", value, "userSellerCouponAmount");
            return (Criteria) this;
        }

        public Criteria andUserSellerCouponAmountGreaterThan(BigDecimal value) {
            addCriterion("user_seller_coupon_amount >", value, "userSellerCouponAmount");
            return (Criteria) this;
        }

        public Criteria andUserSellerCouponAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("user_seller_coupon_amount >=", value, "userSellerCouponAmount");
            return (Criteria) this;
        }

        public Criteria andUserSellerCouponAmountLessThan(BigDecimal value) {
            addCriterion("user_seller_coupon_amount <", value, "userSellerCouponAmount");
            return (Criteria) this;
        }

        public Criteria andUserSellerCouponAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("user_seller_coupon_amount <=", value, "userSellerCouponAmount");
            return (Criteria) this;
        }

        public Criteria andUserSellerCouponAmountIn(List<BigDecimal> values) {
            addCriterion("user_seller_coupon_amount in", values, "userSellerCouponAmount");
            return (Criteria) this;
        }

        public Criteria andUserSellerCouponAmountNotIn(List<BigDecimal> values) {
            addCriterion("user_seller_coupon_amount not in", values, "userSellerCouponAmount");
            return (Criteria) this;
        }

        public Criteria andUserSellerCouponAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("user_seller_coupon_amount between", value1, value2, "userSellerCouponAmount");
            return (Criteria) this;
        }

        public Criteria andUserSellerCouponAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("user_seller_coupon_amount not between", value1, value2, "userSellerCouponAmount");
            return (Criteria) this;
        }

        public Criteria andUserCardAmountIsNull() {
            addCriterion("user_card_amount is null");
            return (Criteria) this;
        }

        public Criteria andUserCardAmountIsNotNull() {
            addCriterion("user_card_amount is not null");
            return (Criteria) this;
        }

        public Criteria andUserCardAmountEqualTo(BigDecimal value) {
            addCriterion("user_card_amount =", value, "userCardAmount");
            return (Criteria) this;
        }

        public Criteria andUserCardAmountNotEqualTo(BigDecimal value) {
            addCriterion("user_card_amount <>", value, "userCardAmount");
            return (Criteria) this;
        }

        public Criteria andUserCardAmountGreaterThan(BigDecimal value) {
            addCriterion("user_card_amount >", value, "userCardAmount");
            return (Criteria) this;
        }

        public Criteria andUserCardAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("user_card_amount >=", value, "userCardAmount");
            return (Criteria) this;
        }

        public Criteria andUserCardAmountLessThan(BigDecimal value) {
            addCriterion("user_card_amount <", value, "userCardAmount");
            return (Criteria) this;
        }

        public Criteria andUserCardAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("user_card_amount <=", value, "userCardAmount");
            return (Criteria) this;
        }

        public Criteria andUserCardAmountIn(List<BigDecimal> values) {
            addCriterion("user_card_amount in", values, "userCardAmount");
            return (Criteria) this;
        }

        public Criteria andUserCardAmountNotIn(List<BigDecimal> values) {
            addCriterion("user_card_amount not in", values, "userCardAmount");
            return (Criteria) this;
        }

        public Criteria andUserCardAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("user_card_amount between", value1, value2, "userCardAmount");
            return (Criteria) this;
        }

        public Criteria andUserCardAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("user_card_amount not between", value1, value2, "userCardAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedAmountIsNull() {
            addCriterion("deducted_amount is null");
            return (Criteria) this;
        }

        public Criteria andDeductedAmountIsNotNull() {
            addCriterion("deducted_amount is not null");
            return (Criteria) this;
        }

        public Criteria andDeductedAmountEqualTo(BigDecimal value) {
            addCriterion("deducted_amount =", value, "deductedAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedAmountNotEqualTo(BigDecimal value) {
            addCriterion("deducted_amount <>", value, "deductedAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedAmountGreaterThan(BigDecimal value) {
            addCriterion("deducted_amount >", value, "deductedAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("deducted_amount >=", value, "deductedAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedAmountLessThan(BigDecimal value) {
            addCriterion("deducted_amount <", value, "deductedAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("deducted_amount <=", value, "deductedAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedAmountIn(List<BigDecimal> values) {
            addCriterion("deducted_amount in", values, "deductedAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedAmountNotIn(List<BigDecimal> values) {
            addCriterion("deducted_amount not in", values, "deductedAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("deducted_amount between", value1, value2, "deductedAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("deducted_amount not between", value1, value2, "deductedAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountIsNull() {
            addCriterion("deducted_coupon_amount is null");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountIsNotNull() {
            addCriterion("deducted_coupon_amount is not null");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountEqualTo(BigDecimal value) {
            addCriterion("deducted_coupon_amount =", value, "deductedCouponAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountNotEqualTo(BigDecimal value) {
            addCriterion("deducted_coupon_amount <>", value, "deductedCouponAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountGreaterThan(BigDecimal value) {
            addCriterion("deducted_coupon_amount >", value, "deductedCouponAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("deducted_coupon_amount >=", value, "deductedCouponAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountLessThan(BigDecimal value) {
            addCriterion("deducted_coupon_amount <", value, "deductedCouponAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("deducted_coupon_amount <=", value, "deductedCouponAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountIn(List<BigDecimal> values) {
            addCriterion("deducted_coupon_amount in", values, "deductedCouponAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountNotIn(List<BigDecimal> values) {
            addCriterion("deducted_coupon_amount not in", values, "deductedCouponAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("deducted_coupon_amount between", value1, value2, "deductedCouponAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("deducted_coupon_amount not between", value1, value2, "deductedCouponAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountIsNull() {
            addCriterion("deducted_promotion_amount is null");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountIsNotNull() {
            addCriterion("deducted_promotion_amount is not null");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountEqualTo(BigDecimal value) {
            addCriterion("deducted_promotion_amount =", value, "deductedPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountNotEqualTo(BigDecimal value) {
            addCriterion("deducted_promotion_amount <>", value, "deductedPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountGreaterThan(BigDecimal value) {
            addCriterion("deducted_promotion_amount >", value, "deductedPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("deducted_promotion_amount >=", value, "deductedPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountLessThan(BigDecimal value) {
            addCriterion("deducted_promotion_amount <", value, "deductedPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("deducted_promotion_amount <=", value, "deductedPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountIn(List<BigDecimal> values) {
            addCriterion("deducted_promotion_amount in", values, "deductedPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountNotIn(List<BigDecimal> values) {
            addCriterion("deducted_promotion_amount not in", values, "deductedPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("deducted_promotion_amount between", value1, value2, "deductedPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("deducted_promotion_amount not between", value1, value2, "deductedPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andFreightIsNull() {
            addCriterion("freight is null");
            return (Criteria) this;
        }

        public Criteria andFreightIsNotNull() {
            addCriterion("freight is not null");
            return (Criteria) this;
        }

        public Criteria andFreightEqualTo(BigDecimal value) {
            addCriterion("freight =", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightNotEqualTo(BigDecimal value) {
            addCriterion("freight <>", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightGreaterThan(BigDecimal value) {
            addCriterion("freight >", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("freight >=", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightLessThan(BigDecimal value) {
            addCriterion("freight <", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightLessThanOrEqualTo(BigDecimal value) {
            addCriterion("freight <=", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightIn(List<BigDecimal> values) {
            addCriterion("freight in", values, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightNotIn(List<BigDecimal> values) {
            addCriterion("freight not in", values, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("freight between", value1, value2, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("freight not between", value1, value2, "freight");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountIsNull() {
            addCriterion("thirdparty_discount is null");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountIsNotNull() {
            addCriterion("thirdparty_discount is not null");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountEqualTo(BigDecimal value) {
            addCriterion("thirdparty_discount =", value, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountNotEqualTo(BigDecimal value) {
            addCriterion("thirdparty_discount <>", value, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountGreaterThan(BigDecimal value) {
            addCriterion("thirdparty_discount >", value, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("thirdparty_discount >=", value, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountLessThan(BigDecimal value) {
            addCriterion("thirdparty_discount <", value, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("thirdparty_discount <=", value, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountIn(List<BigDecimal> values) {
            addCriterion("thirdparty_discount in", values, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountNotIn(List<BigDecimal> values) {
            addCriterion("thirdparty_discount not in", values, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("thirdparty_discount between", value1, value2, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("thirdparty_discount not between", value1, value2, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNull() {
            addCriterion("add_time is null");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNotNull() {
            addCriterion("add_time is not null");
            return (Criteria) this;
        }

        public Criteria andAddTimeEqualTo(Date value) {
            addCriterion("add_time =", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotEqualTo(Date value) {
            addCriterion("add_time <>", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThan(Date value) {
            addCriterion("add_time >", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("add_time >=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThan(Date value) {
            addCriterion("add_time <", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThanOrEqualTo(Date value) {
            addCriterion("add_time <=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeIn(List<Date> values) {
            addCriterion("add_time in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotIn(List<Date> values) {
            addCriterion("add_time not in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeBetween(Date value1, Date value2) {
            addCriterion("add_time between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotBetween(Date value1, Date value2) {
            addCriterion("add_time not between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}